package com.easy.service.impl;

import com.easy.bean.Register;
import com.easy.dao.IRegisterDao;
import com.easy.service.IRegisterService;
import com.easy.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class RegisterServiceImpl implements IRegisterService {

    @Autowired
    IRegisterDao dao;

    @Override
    public List<Register> getRegister(Register register, Page page) {
        return dao.getRegister(register,page);
    }

    @Override
    public int getRegisterCount(Register register) {
        return dao.getRegisterCount(register);
    }

    @Override
    public Register getRegisterByID(Register register) {
        return dao.getRegisterByID(register);
    }

    @Override
    public int delRegisterByID(Register register) {
        return dao.delRegisterByID(register);
    }

    @Override
    public int addRegister(Register register) {
        return dao.addRegister(register);
    }

    @Override
    public int editRegister(Register register) {
        return dao.editRegister(register);
    }
}
